str1=input("请输入一个字符串:")
str2=""
max=1
j=""
for i in str1:
    if i not in str2:
        count = str1.count(i)
        print(i,count,end=" ",sep="")
        if count > max:
            count,max = max , count
            j = i
        str2 += i
print("出现最多字符是%c,次数为%d"%(j,max))